﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PowerShell_Commander
{
    public partial class List : Form
    {
        public List<string> list;

        public List()
        {
            InitializeComponent();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void List_Load(object sender, EventArgs e)
        {
            list.ForEach(delegate(string s)
            {
                lstList.Items.Add(s);
            });
        }

        private void btnApply_Click(object sender, EventArgs e)
        {
            MainForm.command = lstList.SelectedItem.ToString();
        }
    }
}
